var Constants = {
  MODULE_TYPE: {
    COMMON: 'common',
    HOME: 'home',
    WORK_HARD: 'workHard',
    LOGIN: 'login',
    USER: 'user',
    ACTIVITY: 'activity',
    ALI_OSS: 'aliOss',
    NEWS: 'news',
    HEART: 'heart',
    IM: 'im',
    SPORT: 'sport',
    VIPSERCARD: 'vipSerCard',
    GUAHAO: 'guahao',
    QUAN_ZI: 'quanzi',
    ZAHUOPU: 'zahuopu',
    POST: 'post',
    JIFENMALL: 'jifenMall',
    JIANYI: 'jianyi',
    PUSH: 'push',
    SHUWU: 'shuwu',
    NOTICE: 'notice'
  },

  LOGIN_TYPE: {
    VISITOR: 'visitor',
    USER: 'user'
  },

  //{id:1,name:'首页'},{id:2,name:'创新创效'},{id:3,name:'工会活动'},{id:4,name:'新闻要闻'},{id:5,name:"新闻大庆"},{id:6,name:"心灵杂货铺"},{id:7,name:"eap活动"}
  // ,{id:8,name:"首页广告"},{id:9,name:"爱情事"},{id:10,name:"启动广告"},{id:11,name:"积分商城"}];
  SLIDER_TYPE: {
    INDEX: 1,
    WORK_HARD: 2,
    ACTIVITY: 3,
    NEWS_YAOWEN: 5,
    NEWS_DAQING: 4,
    ZHP_NEW: 6,
    HEART_EAP: 7,
    OPEN_AD: 8,
    HEART_LOVE: 9,
    JIFEN_MALL: 11,
    HEART_ENTER_WORLD: 12
  },

  USER: null,
  shareData: null,
  BOARDS: [],
  IS_WELLCOME: false,

  RANDOM_UPLOAD_NAME: function(n) {
    var chars = [
      '0',
      '1',
      '2',
      '3',
      '4',
      '5',
      '6',
      '7',
      '8',
      '9',
      'A',
      'B',
      'C',
      'D',
      'E',
      'F',
      'G',
      'H',
      'I',
      'J',
      'K',
      'L',
      'M',
      'N',
      'O',
      'P',
      'Q',
      'R',
      'S',
      'T',
      'U',
      'V',
      'W',
      'X',
      'Y',
      'Z'
    ];
    var res = '';
    for (var i = 0; i < n; i++) {
      var id = Math.ceil(Math.random() * 35);
      res += chars[id];
    }
    res += new Date().getTime();
    return res + '_';
  },

  CONFIG_NAME: {
    SPORT_DIBIAO: { key: 'sport_dibiao_open' } //value = "1"|"0"
  }
};

module.exports = Constants;
